package com.own.business.system.user.business.service;

import com.own.business.system.user.business.entity.form.GetSensitiveTokenByPhoneForm;
import com.own.business.system.user.business.entity.vo.SensitivePhoneCodeVo;
import com.own.component.sensitive.check.entity.SensitiveTokenVo;

/**
 * SensitivePhoneService
 *
 * @author chenxueli
 * @date 2023-11-04 16:15:00
 */
public interface SensitivePhoneService {

    /**
     * 获取敏感信息修改的验证码
     *
     * @param userId 用户id
     * @return 验证码信息
     */
    SensitivePhoneCodeVo getSensitivePhoneCode(Long userId);

    /**
     * 根据手机验证码获取敏感信息修改的token
     *
     * @param userId 用户id
     * @param form   敏感信息确认的表单信息
     * @return 修改信息令牌
     */
    SensitiveTokenVo getSensitiveChangeTokenByPhone(Long userId, GetSensitiveTokenByPhoneForm form);

}
